package com.gxa.controller;

import com.gxa.domain.entity.User;
import com.gxa.service.Impl.UserServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/user")
public class UserController {
    @Autowired
    UserServiceImpl userService;
    @RequestMapping("findUserById")
    @ResponseBody
    public User findUserById(int userId){

        return userService.findUserById(userId);
    }

}
